package pattern.structrual.decorator.v2;

/**
 * @Author Gavin
 * @date 2020.07.16 15:22
 */
public abstract class AbstractDescorator extends ABattercake {
    private ABattercake aBattercake;

    public AbstractDescorator(ABattercake aBattercake) {
        this.aBattercake = aBattercake;
    }

    abstract void doSomething();

    @Override
    protected String desc() {
        return this.aBattercake.desc();
    }

    @Override
    protected String cost() {
        return this.aBattercake.cost();
    }
}
